home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Fonts / FontNumber.h < prev    next >
Text File  |  2000-06-23  |  542b  |  31 lines

  1. // FontNumber.h
  2.  
  3. #ifndef FontNumber_h
  4. #define FontNumber_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class ConstPString;
  11.  
  12. class FontNumber
  13.   {
  14.     private:
  15.         int16 number;
  16.             
  17.     public:
  18.         explicit FontNumber( int16 value );
  19.         explicit FontNumber( ConstPString );
  20.     
  21.         static FontNumber System();
  22.         static FontNumber Application();
  23.         
  24.         int16 Value() const                            { return number; }
  25.         
  26.         bool operator==( FontNumber f ) const    { return number == f.number; }
  27.         bool operator!=( FontNumber f ) const    { return number != f.number; }
  28.   };
  29.  
  30. #endif
  31.